package com.hp.gxw.constant;

public enum ReportEnum {

    completed("completed", "产成品报表"),

    production("production", "半成品报表");

    private String code;

    private String describe;

    ReportEnum(String code, String describe) {
        this.code = code;
        this.describe = describe;
    }

    public static String getMsg(String code){
        ReportEnum[] values = ReportEnum.values();
        String d = null;
        for (ReportEnum value : values) {
            if(value.getCode().equals(code)){
                d = value.getDescribe();
                break;
            }
        }
        return d;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
